package User;

import Operation.*;

public class NomalUser extends User{
    IOperation[] iOperation = new IOperation[]{
            new ExitOpetation(),
            new BorroOperation(),
            new ReturnOperation(),
            new FindOperation(),
            new ShowOperation(),

    };
    @Override
    public void menu() {
        System.out.println("**************************");
        System.out.println("1.借走书籍");
        System.out.println("2.归还书籍");
        System.out.println("3.查询书籍");
        System.out.println("4.显示书籍");
        System.out.println("0.退出程序");
        System.out.println("**************************");
    }

    public NomalUser(String name) {
        super(name);
    }



    @Override
    public IOperation DoOperation(int n) {
        return iOperation[n];
    }
}
